package com.example.demo2.mapper;

import com.example.demo2.entity.Target;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TargetContentMapper {
    //查询教学环节及详细内容
    List<Target> findTargetContent(Integer courseId);

    //删除教学环节及详细内容
    int deleteTargetContent(@Param("courseId") Integer courseId);

    //更新教学环节及详细内容
    int updateTargetContent(@Param("courseId") Integer courseId, @Param("courseTarget") String courseTarget, @Param("courseTargetContent") String courseTargetContent);

}
